paginate

fun <T> Iterable<T>.paginate(with: Pagination): PaginationResult<T>
fun <T> List<T>.paginate(with: Pagination): PaginationResult<T>
fun <T> Set<T>.paginate(with: Pagination): PaginationResult<T>